home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / SAMBA193.ZIP / makefile.os2 < prev    next >
Encoding:
Makefile  |  1996-03-10  |  17.8 KB  |  540 lines

  1. ###########################################################################
  2. # Makefile for Samba SMB client/server for unix
  3. # Copyright Andrew Tridgell 1992,1993,1994
  4. ###########################################################################
  5.  
  6. # The base manpages directory to put the man pages in
  7. # Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
  8. MANDIR = /usr/local/man
  9.  
  10. # The directories to put things in. If you use multiple
  11. # architectures or share the samba binaries across NFS then
  12. # you will probably want to change this layout.
  13. BASEDIR = .
  14. BINDIR = $(BASEDIR)
  15. LIBDIR = $(BASEDIR)
  16. VARDIR = $(BASEDIR)
  17.  
  18. # WARNING: If you are upgrading, make sure you put all the files
  19. # in the right spot! The default positions have changed!
  20.  
  21.  
  22. # The permissions to give the executables
  23. INSTALLPERMS = 0755
  24.  
  25. # Add any optimisation or debugging flags here
  26. # add -DSYSLOG for syslog support
  27. FLAGS1 = -O
  28. #FLAGS1 = -g -DNO_FORK_DEBUG
  29. LIBS1 = 
  30.  
  31. # You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
  32. # use cc, instead you will have to use gcc. 
  33. CC = gcc
  34.  
  35. # This may help with some versions of make
  36. # SHELL = /bin/sh
  37.  
  38. # The following can be useful for compiling on multiple architectures
  39. srcdir=.
  40. VPATH=$(srcdir)
  41.  
  42. # set these to where to find various files
  43. # These can be overridden by command line switches (see smbd(8))
  44. # or in smb.conf (see smb.conf(5))
  45. SMBLOGFILE = $(VARDIR)/log.smb
  46. NMBLOGFILE = $(VARDIR)/log.nmb
  47. CONFIGFILE = $(LIBDIR)/smb.cfg
  48. LMHOSTSFILE = $(LIBDIR)/lmhosts
  49.  
  50. # the directory where lock files go
  51. LOCKDIR = /tmp/samba
  52.  
  53. # set this to the default group you want your machine to appear in
  54. # for browsing. This can also be set in nmbd (see nmbd(8))
  55. # NOTE: If you set it to * then nmbd will try to find a workgroup on
  56. # the local net
  57. WORKGROUP = WORKGROUP
  58.  
  59. # set this to the name of the default account, which is the one
  60. # to use when no username or password is specified.  This can be overridden
  61. # in the runtime configuration file (see smb.conf(5))
  62. # NOTE: The account "nobody" may not be a good one as
  63. # on many unixes it may not be able to print. Thus you
  64. # might have to create a separate guest account that can print.
  65. GUESTACCOUNT = nobody
  66.  
  67. # where you are going to have the smbrun binary. This defaults to the 
  68. # install directory. This binary is needed for correct printing
  69. # and magic script execution. This should be an absolute path!
  70. # Also not that this should include the name "smbrun" on the end (the
  71. # name of the executable)
  72. SMBRUN = $(BINDIR)/smbrun.exe
  73.  
  74. # This is for AFS authentication.  If you use AFS then set AFS_BASE 
  75. # according to your system layout, and uncomment the other lines as well.
  76. # AFS_BASE = /usr/afsws
  77. # AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include
  78. # AFS_LIBDIR = $(AFS_BASE)/lib
  79. # NOTE: You may need to add -laudit in the line below
  80. # AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \
  81. #                -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \
  82. #                $(AFS_LIBDIR)/afs/util.a
  83.  
  84. # This is for DCE/DFS enablement. Uncomment this so that smbd can
  85. # operate as an authenticated user identity to operate on files that
  86. # live in the DCE Distributed Filesystem.
  87. # DCE_BASE = /opt/dcelocal
  88. # DCE_FLAGS = -I$(DCE_BASE)/include
  89. # DCE_LIBDIR = -L$(DCE_BASE)/lib
  90. # DCE_LIBS =
  91.  
  92. # This is for SMB encrypted (lanman) passwords.
  93. # you may wish to add -DREPLACE_GETPASS if your getpass() is limited
  94. # to 8 chars
  95. # DES_BASE=/usr/local/libdes
  96. # DES_FLAGS= -I$(DES_BASE)
  97. # DES_LIB= -L$(DES_BASE) -ldes
  98. # PASSWD_FLAGS=-DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\"
  99.  
  100. ######################################
  101. # VTP-Support
  102. #
  103. # uncomment the following two lines to enable VTP-Support
  104. #VTP_FLAGS = -DWITH_VTP
  105. #VTP_OBJ = vt_mode.o
  106. ######################################
  107.  
  108.  
  109. #####################################
  110. # WHICH OPERATING SYSTEM?
  111. # UNCOMMENT ONE OF THE SECTIONS BELOW
  112. # MAKE SURE ONLY *ONE* IS UNCOMMENTED
  113. #
  114. # The following are additional flags that may apply
  115. #   -DNETGROUP if your machine supports yp netgroups
  116. #   -DSHADOW_PWD if you are using shadow passwords
  117. #   -DGETPWANAM if you wish to use getpwanam() call
  118. #   -DPWDAUTH if you have and want to use the pwdauth() call
  119. #   -DUFC_CRYPT if you want the fast crypt routine
  120. #   -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password
  121. #                           remotely (only works on some systems)
  122. #   -DQUOTAS for quota support in disk_free(). This probably only works 
  123. #            on some systems.
  124. #
  125. #    NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you
  126. #          Define one, you should NOT define the other.
  127. #####################################
  128.  
  129. #####################################
  130. # for the JAPANESE EXTENSION
  131. # select filename's code set for KANJI/KANA in UNIX,
  132. # apply the following flag
  133. #   -DKANJI=\"<code>\"
  134. #        <code> is select character code set for JAPAN.
  135. #             sjis:   if your machine support SJIS
  136. #             euc:      if your machine support EUC
  137. #             jis7:     if your machine support JIS7
  138. #             jis8:     if your machine support JIS8
  139. #             junet:    if your machine support jis7 + junet rule
  140. #             hex:      if your machine only support 7 bits ascii filename only
  141. #                       convert to hexdecimal code preseeding ':'.
  142. # see also README.jis
  143. ######################################
  144.  
  145.  
  146. # This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
  147. # Note that you cannot use Suns "cc" compiler
  148. # as it's not an Ansi-C compiler. Get gcc or acc. 
  149. # Note that if you have adjunct passwords you may need the GETPWANAM 
  150. # or PWDAUTH option. There have been reports that using PWDAUTH may crash
  151. # your pwdauthd server so GETPWANAM is preferable (and probably faster)
  152. # contributed by Andrew.Tridgell@anu.edu.au
  153. # FLAGSM = -DSUNOS4
  154. # LIBSM =   
  155.  
  156.  
  157. # Use this for Linux with shadow passwords
  158. # contributed by Andrew.Tridgell@anu.edu.au
  159. # add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
  160. # right libraries and includes
  161. # FLAGSM = -DLINUX -DSHADOW_PWD
  162. # LIBSM = -lshadow
  163.  
  164. # Use this for Linux without shadow passwords
  165. # contributed by Andrew.Tridgell@anu.edu.au
  166. # FLAGSM = -DLINUX
  167. # LIBSM = 
  168.  
  169.  
  170. # This is for SUNOS5 (also known as Solaris 2)
  171. # contributed by Andrew.Tridgell@anu.edu.au
  172. # FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP 
  173. # LIBSM = -lsocket -lnsl
  174.  
  175.  
  176. # This is for SVR4
  177. # Contributed by mark@scot1.ucsalf.ac.uk
  178. # FLAGSM = -DSVR4 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD
  179. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  180.  
  181.  
  182. # This is for the Motorola 88xxx/9xx range of machines
  183. # Contributed by RPE@monnet.com
  184. # FLAGSM = -DSVR4 -DSHADOW_PWD -DGETTIMEOFDAY1
  185. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  186.  
  187.  
  188. # This is for UNIXWARE
  189. # FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
  190. # LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  191.  
  192.  
  193. # This is for ULTRIX. Add -DULTRIX_AUTH for Ultrix enhanced security.
  194. # contributed by iversen@dsfys1.fi.uib.no
  195. # FLAGSM = -DULTRIX
  196. # LIBSM =   
  197.  
  198.  
  199. # This is for OSF1 (Alpha)
  200. # contributed by errath@balu.kfunigraz.ac.at
  201. # NOTE: You may need -warning_unresolved if you get unresolved symbols
  202. # FLAGSM = -DOSF1
  203. # LIBSM =
  204.  
  205. # This is for OSF1 with DCE/DFS
  206. # contributed by Jim Doyle <doyle@oec.com>
  207. # FLAGSM = -DOSF1 -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  208. # LIBSM = -ldce -lpthreads -lmach -lc_r
  209.  
  210. # This is for OSF1 (Alpha) with NIS and Fast Crypt
  211. # contributed by David Gardiner <dgardine@cssip.edu.au>
  212. # FLAGSM = -DOSF1 -DNETGROUP -DUFC_CRYPT
  213. # LIBSM =
  214.  
  215.  
  216. # This is for OSF1 (Alpha) V2.0 Enhanced Security 
  217. # contributed by Udo Linauer <ul@eacpc4.tuwien.ac.at>
  218. # FLAGSM = -DOSF1 -DOSF1_ENH_SEC
  219. # LIBSM = -lsecurity
  220.  
  221.  
  222. # This is for AIX
  223. # contributed by tomc@osi.curtin.edu.au
  224. # FLAGSM = -DAIX
  225. # LIBSM =   
  226.  
  227. # This is for AIX 3.2.5 with DCE/DFS
  228. # contributed by Jim Doyle <doyle@oec.com>
  229. # FLAGSM = -DAIX -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  230. # LIBSM = -lc_r -ldce -lpthreads
  231. # CC = cc_r
  232.  
  233. # This is for BSDI 
  234. # contributed by tomh@metrics.com
  235. # versions of BSDI prior to 2.0 may need to add -DUSE_F_FSIZE for 
  236. # disk usage stats to be correct
  237. # FLAGSM = -DBSDI
  238. # LIBSM =   
  239.  
  240.  
  241. # This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
  242. # contributed by noses@oink.rhein.de
  243. # FLAGSM = -DNETBSD -DSHADOW_PWD
  244. # LIBSM = -lcrypt 
  245.  
  246.  
  247. # This is for SEQUENT. 
  248. # Contributed by fwk@ix.netcom.com (Frank Keeney) and 
  249. # rpwillia@Pentagon-EMH6.army.mil (Ray Williams)
  250. # tested on DYNIX/ptx(R) V2.1.0
  251. # FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE
  252. # LIBSM = -lrpc -lsocket -lPW -linet -lnsl -lseq -lsec
  253.  
  254.  
  255. # This is for HP-UX. Note that some systems don't like the -Aa switch.
  256. # contributed by Pasi.Kaara@atk.tpo.fi
  257. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
  258. # LIBSM = 
  259.  
  260. # This is for HP-UX with DCE/DFS
  261. # contributed by Jim Doyle <doyle@oec.com>
  262. # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DDFS_AUTH -D_REENTRANT -I/usr/include/reentrant
  263. # LIBSM = -ldce -lM -lc_r
  264.  
  265.  
  266. # This is for SGI.
  267. # contributed by lpc@solomon.technet.sg (Michael Chua)
  268. # FOR SGI IRIX 4.x.x, use the following line
  269. # FLAGSM = -DSGI -DHAVE_TIMEZONE
  270. # LIBSM = -lsun
  271.  
  272. # FOR SGI IRIX 5.x.x, use this line instead
  273. # FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE
  274. # LIBSM =
  275.  
  276.  
  277. # This is for FreeBSD
  278. # contributed by kuku@acds.physik.rwth-aachen.de
  279. # NOTE: You may need to add -DBSD44 if you have password problems
  280. # FLAGSM = -DFreeBSD
  281. # LIBSM = -lcrypt 
  282.  
  283.  
  284. # This is for NEXTSTEP Release 2.X
  285. # No Posix.
  286. # contributed by brad@cac.washington.edu (Brad Greer)
  287. # FLAGSM = -DNEXT2 
  288. # LIBSM = 
  289.  
  290. # This is for NEXTSTEP Release 3.0 and greater (including OPENSTEP for Mach).
  291. # contributed by brad@cac.washington.edu (Brad Greer)
  292. # additional configuration by pmarcos@next.com (Paul Marcos)
  293. # For compiling n-way fat executables, you should append the appropriat -arch 
  294. # flags to the FLAGSM variable.  Valid flags are:
  295. #    -arch m68k
  296. #    -arch i386
  297. #    -arch hppa
  298. #    -arch sparc
  299. # To compile 4-way fat, you would append
  300. #    -arch m68k -arch i386 -arch hppa -arch sparc
  301. # FLAGSM = -DNEXT3_0
  302. # LIBSM = 
  303.  
  304.  
  305. # NOTE: ISC is also known as "INTERACTIVE"
  306. # This is for Sunsoft ISC SVR3V4 running in POSIX mode
  307. # contributed by pim@cti-software.nl (Pim Zandbergen)
  308. # FLAGSM = -posix -D_SYSV3 -DISC -DSHADOW_PWD
  309. # LIBSM = -lsec -lcrypt -linet
  310.  
  311. # This is for Sunsoft ISC SVR3V4 running in iBCS2 mode
  312. # contributed by pim@cti-software.nl (Pim Zandbergen)
  313. # FLAGSM = -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_SYSV3\
  314. #          -DISC -DSHADOW_PWD -DREPLACE_GETWD -DREPLACE_RENAME
  315. # LIBSM = -lsec -lcrypt -linet -lcposix
  316.  
  317.  
  318. # This is for A/UX 3.0
  319. # Contributed by root@dolphin.csudh.edu (Jon S. Stevens)
  320. # FLAGSM = -DAUX
  321. # LIBSM =
  322.  
  323. # This is for Altos Series 386/1000
  324. # Contributed by cal@zls.com
  325. # FLAGSM = -DALTOS -DHAS_RDCHK
  326. # LIBSM = -lsocket -lxenix
  327.  
  328.  
  329. #Note: The SCO entries require the libcrypt library. You can get it via
  330. #anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
  331. #
  332. # Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
  333. # SCO changes from Heinz Mauelshagen (mauelsha@ez.da.telekom.de)
  334. # FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
  335. # LIBSM = -lyp -lrpc -lyp -lsec -lsocket -lcrypt_i -lintl
  336.  
  337. # Use this for SCO with shadow passwords, without YP.
  338. # Tested on "Open Enterprise Server 3.0" (John Owens john@micros.com)
  339. # Also, use "CC = cc" above.
  340. # FLAGSM = -DSCO -DSHADOW_PWD
  341. # LIBSM = -lsec -lsocket -lcrypt_i
  342.  
  343. # Use this for SCO with TCB passwords (default).
  344. # Tested on "Open enterprise 3.0". Contributed by lance@fox.com.
  345. # CC     = cc
  346. # FLAGSM = -DSCO -DSecureWare
  347. # LIBSM  = -lprot_s -lcrypt -lsocket -lm -lc_s
  348.  
  349. # Use this for SCO Unix 3.2v2 (ODT 1.1) with TCB passwords (default).
  350. # Contributed by Stephen.Rothwell@pd.necisa.oz.au
  351. # N.B. this needs gcc
  352. # FLAGSM = -DSCO -DSecureWare -DSCO3_2_2
  353. # LIBSM  = -lprot -lcrypt_i -lsocket -lm -lintl
  354.  
  355. # This is for the european distribution of SCO. 
  356. # Contributed by Urmet.Janes@gwhite.goodwin.ee
  357. # FLAGSM = -DSCO -DSHADOW_PWD 
  358. # LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
  359.  
  360. # Use this for SCO OpenServer 5 with TCB passwords (default).
  361. # contributed by Scott Michel <scottm@intime.intime.com>
  362. # CC     = cc -Xc
  363. # FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
  364. # LIBSM  = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
  365.  
  366.  
  367. # This is for intergraph. 
  368. # contributed by cjkiick@flinx.b11.ingr.com
  369. # modified by ttj@sknsws61.sjo.statkart.no
  370. # FLAGSM = -DCLIX -D_INGR_EXTENSIONS=1
  371. # LIBSM = -lbsd -lc_s
  372.  
  373. # This is for DGUX. 
  374. # Contributed by ross@augie.insci.com (Ross Andrus)
  375. # FLAGSM = -DDGUX 
  376. # LIBSM  = 
  377.  
  378. # This is for Apollo Domain/OS sr10.3 (systype = BSD4.3)
  379. # Added 1994-07-08 Stephen C. Steel <steve@qv3donald.LeidenUniv.nl>
  380. # additional patches by jmi@csd.cri.dk (John Mills)
  381. # you may need the "-A ansi" switch to cc
  382. # FLAGSM = -DAPOLLO -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE
  383. # LIBSM =
  384.  
  385.  
  386. # RiscIX. 
  387. # contributed by Jim Barry <jim@ilp.com> and 
  388. # Charles Gay-Jones <charlie@ilp.com>
  389. # FLAGSM = -DRiscIX -DNOSTRDUP
  390. # LIBSM =
  391.  
  392.  
  393. # This is for System V with some berkely extensions (Motorola 88k R32V3.2).
  394. # contributed by tonyb@plaza.ds.adp.com (Tony D. Birnseth)
  395. # FLAGSM = -DM88K_R3
  396. # LIBSM = -lgen -lbsd -lnsl
  397.  
  398.  
  399. # This is for DNIX.
  400. # contributed by Peter Olsson <pol@leissner.se>
  401. # NOTE: You may need an updated libc.a from your vendor as older
  402. # versions have broken mktime calls and no initgroups() call
  403. # NOTE2: You may need -lpasswd if you use shadow passwords
  404. # NOTE3: Please read the file DNIX.txt in the docs directory. It
  405. # contains important information about uid handling under DNIX, you may
  406. # need to patch your C library.
  407. # FLAGSM = -DDNIX -I/usr/include/bsd
  408. # LIBSM = -ln
  409.  
  410.  
  411. # This is for Cray, Unicos 8.0
  412. # contributed by velo@sesun3.epfl.ch (Martin Ouwehand)
  413. # FLAGSM = -DCRAY -U__STDC__ -DQUOTAS
  414. # LIBSM =
  415.  
  416. # This is for Convex
  417. # contributed by Victor Balashov <balashov@cv.jinr.dubna.su>
  418. # and Ulrich Hahn <ulrich.hahn@zdv.uni-tuebingen.de>
  419. # FLAGSM= -DCONVEX -DSHADOW_PWD
  420. # LIBSM= 
  421.  
  422. # This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series
  423. # contributed by jeffrey@itm.org
  424. # FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP
  425. # LIBSM = -lsocket -lnsl
  426.  
  427. # This is for QNX 4.22
  428. # Contributed by eldo@invisa.satlink.net (Eldo Loguzzo)
  429. # FLAGSM = -DQNX -DGUEST_SESSSETUP=1
  430. # LIBSM =
  431.  
  432.  
  433. # This is for SONY NEWS, NEWS-OS 4.2.x
  434. # contributed by sky@sm.sony.co.jp (Katushi Sato)
  435. # FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
  436. # LIBSM =
  437.  
  438. # This is for OS/2 using EMX 0.9b
  439. # Contributed by jasonr@pec.co.nz (Jason Rumney)
  440. FLAGSM = -DOS2
  441. LIBSM = -Zexe -Zbin-files -lsocket
  442. # fork() in DLL version of C RTL has problems - only affects smbd.
  443. LIBSMX = -Zcrtdll
  444.  
  445. ######################################################################
  446. # DON'T EDIT BELOW THIS LINE
  447. ######################################################################
  448.  
  449. CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
  450. CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" 
  451. CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\"
  452. CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" 
  453. CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) 
  454. CFLAGS  = $(CFLAGS5) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
  455. LIBS = $(LIBS1) $(LIBSM) $(DCE_LIBS) $(DES_LIB)
  456.  
  457. PROGS1 = smbd smbclnt nmbd testparm testprns smbstat smbpass 
  458. #smbrun
  459. PROGS = $(PROGS1) nmblook
  460. SCRIPTS = smbtar addtosmbpass
  461.  
  462. all : $(PROGS)
  463.  
  464. #CHECK :
  465. #    @$(SHELL) $(srcdir)/checkos.sh $(FLAGSM)
  466. #    @echo "Using CFLAGS = $(CFLAGS)"
  467. #    @echo "Using LIBS = $(LIBS)"
  468.  
  469. INCLUDES1 = version.h local.h includes.h smb.h loadparm.h params.h smbpass.h
  470. INCLUDES2 = pcap.h trans2.h reply.h
  471. INCLUDES = $(INCLUDES1) $(INCLUDES2)
  472.  
  473. UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o charcnv.o
  474. UTILOBJ = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o
  475. PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o 
  476. SMBDOBJ1 = $(PARAMOBJ) trans2.o message.o dir.o printing.o locking.o
  477. SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o
  478. SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ)
  479.  
  480. .SUFFIXES:
  481. .SUFFIXES: .c .o .h
  482.  
  483. .c.o: $(INCLUDES)
  484.     @echo Compiling $*.c
  485.     @$(CC) $(CFLAGS) -c $(srcdir)/$*.c
  486.  
  487. smbd: server.o $(SMBDOBJ)
  488.     @echo Linking smbd
  489.     @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LIBS) $(AFS_LIBS)
  490.  
  491. smbrun: smbrun.o
  492.     @echo Linking smbrun
  493.     @$(CC) $(CFLAGS) -o smbrun smbrun.o $(LIBS)
  494.  
  495. nmblook: nmblookup.o nmblib.o $(UTILOBJ)  
  496.     @echo Linking nmblookup
  497.     @$(CC) $(CFLAGS) -o nmblook nmblookup.o nmblib.o $(UTILOBJ) $(LIBSMX) $(LIBS)
  498.  
  499. nmbd: nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) 
  500.     @echo Linking nmbd
  501.     @$(CC) $(CFLAGS) -o nmbd nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) $(LIBSMX) $(LIBS)
  502.  
  503. smbclnt: client.o clitar.o getsmbpass.o $(UTILOBJ) 
  504.     @echo Linking smbclient
  505.     @$(CC) $(CFLAGS) -o smbclnt client.o clitar.o getsmbpass.o $(UTILOBJ) $(LIBSMX) $(LIBS)
  506.  
  507. smbstat: status.o $(PARAMOBJ) 
  508.     @echo Linking smbstatus
  509.     @$(CC) $(CFLAGS) -o smbstat status.o $(PARAMOBJ) $(LIBSMX) $(LIBS)
  510.  
  511. testparm: testparm.o $(PARAMOBJ)
  512.     @echo Linking testparm
  513.     @$(CC) $(CFLAGS) -o testparm testparm.o $(PARAMOBJ) $(LIBSMX) $(LIBS)
  514.  
  515. testprns: testprns.o $(PARAMOBJ)
  516.     @echo Linking testprns
  517.     @$(CC) $(CFLAGS) -o testprns testprns.o $(PARAMOBJ) $(LIBSMX) $(LIBS)
  518.  
  519. smbpass: smbpasswd.o getsmbpass.o $(PARAMOBJ)
  520.     @echo Linking smbpasswd
  521.     @$(CC) $(CFLAGS) -o smbpass smbpasswd.o getsmbpass.o $(PARAMOBJ) $(LIBSMX) $(LIBS)
  522.  
  523. install: installbin installman
  524.  
  525. installbin: all
  526.     @$(SHELL) $(srcdir)/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) $(SCRIPTS)
  527.  
  528. # revert to the previously installed version
  529. revert:
  530.     @$(SHELL) $(srcdir)/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
  531.  
  532. installman:
  533.     @$(SHELL) $(srcdir)/installman.sh $(MANDIR)
  534.  
  535. clean:
  536.     rm -f core *.o *~ $(PROGS)
  537.  
  538. realclean: clean
  539.  
  540.